package com.admin.common.util;

import java.util.Arrays;

/**
 * @ClassNameArraysUtil
 * @Description 说明类的作用
 * @Author pangd
 * @Date 2019/11/7 19:12
 * @Version V1.0
 **/
public class ArraysUtil {

    public static int binarySearch(int[] a, Integer key) {
        if(key==null || a.length==0){
            return 0;
        }
        return Arrays.binarySearch(a, 0, a.length, key);
    }
}
